This notebook summarizes the realtime-kinetic measurements.
Before running this notebook, you need to pre-process the data with:
This pre-processing analyzes all measurement data files, compute the moving-window slices, the number of bursts and fits the population fractions. All results are saved as CSV in the results folder.
The present notebook loads these results and presents a summary.
In [1]:
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
In [2]:
import time
start_time = time.time()
time.ctime()
Out[2]:
In [3]:
import analysis
In [4]:
filenames = ['singlespot_'+f for f in [
'bubble-bubble_ALEX_150uWGreen_100uWRed_Runoff_kinetics_RT_1',
'bubble-bubble_ALEX_150uWGreen_100uWRed_Runoff_kinetics_RT_2',
'bubble-bubble_ALEX_150uWGreen_100uWRed_Runoff_kinetics_RT_3']]
filenames
Out[4]:
In [5]:
fitres, params = analysis.process(filenames[0], post = (300, 800), post2_start=1500)
In [6]:
res, resw, rest0f, reswt0f, ci, ciw = fitres
In [7]:
res[30].best_values
Out[7]:
In [8]:
resw[180].best_values
Out[8]:
In [9]:
import lmfit
In [10]:
lmfit.report_fit(resw[180])
In [11]:
lmfit.report_ci(ciw[180])
In [12]:
p1 = params['em', 30, 10]
p2 = params['em', 180, 10]
In [13]:
fitres, params = analysis.process(filenames[1], post = (300, 900), post2_start=1500)
In [14]:
fitres, params = analysis.process(filenames[2], post = (300, 1000), post2_start=1500)
In [15]:
import time
print('Execution duration: %d s' % (time.time() - start_time))